OrderShowContentGridCtl = Ext.extend(GridCtl, {

			getCmItems : function() {
				
				var items = [this.getCmItem('ID', 'id', true),
						this.getCmItem('制作类别', 'type', true),
						this.getCmItem('效果图子类选项', 'subtype', true),
						this.getCmItem('单价金额', 'cost', true),
						this.getCmItem('单位', 'costtype', true)];
				return items;
			},
			getCommonConfig : function() {

				var config = {
					height : 300,
					style : 'pading : 10px 10px 10px 10px',
					frame : true,
					region : 'south'
				};

				return config;

			},
			configBbar : function(config) {

				return config;

			},
			load : function(id) {

				var store = this.store;
				store.baseParams = {
					id : id
				};
				store.load();

			},
			getStoreUrl : function() {

				var resource = 'task.do';
				var server = cf.getC('s');
				var url = server.getUrl({
							resource : resource,
							act : 'itemsall'
						});
				return url;
			},
			getRecord : function(index) {
				var store = this.store;
				return store.getAt(index);
			},
			getSelectedRecord : function() {
				var sm = this.cmp.getSelectionModel();
				return sm.getSelected();
			},
			configButtons : function(config) {
				
				return config;

			},
			add : function() {

				var acwc = new AgreeContentWinCtl();
				acwc.show();

			},
			addRecord : function(r) {

				var store = this.store;

				var recordTemplet = this.recordTemplet;

				var myNewRecord = new recordTemplet(r);

				store.add(myNewRecord);

			},
			del : function() {

				var store = this.store;

				var recordList = this.getSelectList();
				if (!recordList) {
					alert('请先选择一条记录！');
					return;
				}

				for (var i = 0; i < recordList.length; i++) {
					store.remove(recordList[i]);
				}

			},
			delSuccess : function(response) {
				var cigc = cf.getC('usrmger');
				cigc.reload();
			}

		});
